<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>git的使用 | Introduction</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../Notes/emmet快捷法.html" />
    
    
    <link rel="prev" href="../Notes/notes.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="1.1"
        data-chapter-title="git的使用"
        data-filepath="Notes/git的使用.md"
        data-basepath=".."
        data-revision="Sun Sep 23 2018 23:38:49 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="Notes/notes.html">
            
                
                    <a href="../Notes/notes.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        知识库
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.1" data-path="Notes/git的使用.html">
            
                
                    <a href="../Notes/git的使用.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        git的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="Notes/emmet快捷法.html">
            
                
                    <a href="../Notes/emmet快捷法.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        emmet快捷法
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="HTML/index.html">
            
                
                    <a href="../HTML/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        HTML5
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="HTML/什么是html5.html">
            
                
                    <a href="../HTML/什么是html5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        什么是html5
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="HTML/a链接.html">
            
                
                    <a href="../HTML/a链接.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.1.</b>
                        
                        a链接
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="HTML/img.html">
            
                
                    <a href="../HTML/img.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.2.</b>
                        
                        图片
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="HTML/元素.html">
            
                
                    <a href="../HTML/元素.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.3.</b>
                        
                        元素
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="HTML/标签.html">
            
                
                    <a href="../HTML/标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.4.</b>
                        
                        标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="HTML/列表.html">
            
                
                    <a href="../HTML/列表.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.5.</b>
                        
                        列表
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="HTML/table&amp;form.html">
            
                
                    <a href="../HTML/table&amp;form.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        表格和表单
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="HTML/form表单.html">
            
                
                    <a href="../HTML/form表单.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        form表单
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="HTML/table表格.html">
            
                
                    <a href="../HTML/table表格.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        table表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="HTML/常用表单类型.html">
            
                
                    <a href="../HTML/常用表单类型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        常用表单类型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="HTML/实体字符.html">
            
                
                    <a href="../HTML/实体字符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        实体字符
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="HTML/多媒体和iframe.html">
            
            <span><b>2.3.</b> 多媒体和iframe</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="HTML/audio&amp;vdieo.html">
            
                
                    <a href="../HTML/audio&amp;vdieo.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.1.</b>
                        
                        音频和视频
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="HTML/iframe.html">
            
                
                    <a href="../HTML/iframe.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.2.</b>
                        
                        iframe
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.3" data-path="HTML/blog.html">
            
                
                    <a href="../HTML/blog.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.3.</b>
                        
                        其它
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="CSS/css3.html">
            
                
                    <a href="../CSS/css3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        CSS3
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="CSS/选择器.html">
            
                
                    <a href="../CSS/选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="CSS/属性选择器.html">
            
                
                    <a href="../CSS/属性选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="CSS/伪类选择器.html">
            
                
                    <a href="../CSS/伪类选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="CSS/盒子模型.html">
            
                
                    <a href="../CSS/盒子模型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.4.</b>
                        
                        盒子模型
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >Introduction</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h2 id="&#x7528;git&#x65B9;&#x5F0F;&#x4E0A;&#x4F20;&#x9879;&#x76EE;&#x5230;&#x7801;&#x4E91;&#x7684;&#x6B65;&#x9AA4;">&#x7528;git&#x65B9;&#x5F0F;&#x4E0A;&#x4F20;&#x9879;&#x76EE;&#x5230;&#x7801;&#x4E91;&#x7684;&#x6B65;&#x9AA4;</h2>
<ol>
<li><p>&#x5982;&#x679C;&#x6CA1;&#x6709;&#x73B0;&#x6210;&#x9879;&#x76EE;&#xFF0C;&#x5728;&#x67D0;&#x4E00;&#x4E2A;&#x7F51;&#x76D8;&#x5185;&#x9996;&#x5148;&#x6267;&#x884C; <code>git clone git&#x5730;&#x5740;</code> &#x751F;&#x6210;&#x4F60;&#x5728;&#x7801;&#x4E91;&#x4E0A;
&#x6240;&#x521B;&#x5EFA;&#x7684;&#x9879;&#x76EE;&#x7684;&#x6587;&#x4EF6;&#x5939;&#xFF0C;&#x8FDB;&#x5165;&#x8BE5;&#x6587;&#x4EF6;&#x5939;&#x8FD0;&#x884C;git&#x6267;&#x884C;&#x4E0B;&#x9762;&#x7684;&#x6B65;&#x9AA4;</p>
</li>
<li><p>&#x5982;&#x679C;&#x8981;&#x63D0;&#x4EA4;&#x81EA;&#x5DF1;&#x4FEE;&#x6539;&#x6216;&#xFF0C;&#x6267;&#x884C;  </p>
<p><code>git add ./  //&#x628A;&#x5F53;&#x524D;&#x6240;&#x6709;&#x6539;&#x52A8;&#x540E;&#x7684;&#x6587;&#x4EF6;&#x6DFB;&#x52A0;&#x5230;git&#x961F;&#x5217;&#x4E2D;</code></p>
</li>
<li><p>&#x628A;&#x961F;&#x5217;&#x4E2D;&#x7684;&#x6587;&#x4EF6;&#x63D0;&#x4EA4;&#x5230;&#x672C;&#x5730;&#x5E93;   </p>
<p><code>git commit -m &#x5199;&#x4E0A;&#x63D0;&#x4EA4;&#x8BF4;&#x660E;</code></p>
</li>
<li><p>&#x5982;&#x679C;&#x8BE5;&#x9879;&#x76EE;&#x5B58;&#x5728;&#x591A;&#x4EBA;&#x534F;&#x4F5C;&#xFF0C;&#x8FD9;&#x4E00;&#x6B65;&#x5FC5;&#x4E0D;&#x53EF;&#x5C11;&#x6709;&#x6548;&#x9632;&#x6B62;&#x6587;&#x4EF6;&#x51B2;&#x7A81;    </p>
<p><code>git pull</code> </p>
</li>
</ol>
<p>&#x8FD9;&#x4E00;&#x6B65;&#x4F1A;&#x628A;&#x8FDC;&#x7A0B;&#x5E93;&#x7684;&#x6587;&#x4EF6;&#x62C9;&#x53D6;&#x5230;&#x672C;&#x5730;&#x5E93;&#xFF0C;&#x4F1A;&#x5BF9;&#x6709;&#x51B2;&#x7A81;&#x7684;&#x6587;&#x4EF6;&#x8FDB;&#x884C;&#x81EA;&#x52A8;&#x5408;&#x5E76;(&#x5C3D;&#x91CF;&#x4E0D;&#x8981;&#x8BA9;&#x591A;&#x4EBA;&#x540C;&#x65F6;&#x6539;&#x52A8;&#x4E00;&#x4E2A;&#x6587;&#x4EF6;&#xFF0C;&#x5426;&#x5219;&#x81EA;&#x52A8;&#x5408;&#x5E76;&#x5931;&#x6548;&#xFF0C;&#x9700;&#x8981;&#x624B;&#x52A8;&#x5408;&#x5E76;)</p>
<p>&#x6709;&#x53EF;&#x80FD;&#x63D0;&#x793A;&#x8BF4;&#x627E;&#x4E0D;&#x5230;&#x8981;&#x62C9;&#x53D6;&#x7684;&#x8FDC;&#x7AEF;&#x5730;&#x5740;&#xFF0C;&#x53EF;&#x4EE5;&#x5728;&#x547D;&#x4EE4;&#x540E;&#x9762;&#x6DFB;&#x52A0;&#x53C2;&#x6570;</p>
<p><code>git pull origin master   //&#x8868;&#x793A;&#x62C9;&#x53D6;&#x6240;&#x8BBE;&#x6E90;&#x5730;&#x5740;&#x7684;&#x4E3B;&#x7EBF;&#x5206;&#x652F;&#x4EE3;&#x7801;</code></p>
<ol>
<li>&#x6700;&#x540E;&#x4FDD;&#x8BC1;&#x4E0A;&#x9762;&#x51E0;&#x6B65;&#x6CA1;&#x95EE;&#x9898;&#x540E;&#xFF0C;&#x628A;&#x672C;&#x5730;&#x5E93;&#x6587;&#x4EF6;&#x63A8;&#x9001;&#x5230;&#x8FDC;&#x7A0B;&#x5E93;  <code>git push</code></li>
</ol>
<p>&#x6709;&#x53EF;&#x80FD;&#x63D0;&#x793A;&#x8BF4;&#x627E;&#x4E0D;&#x5230;&#x8981;&#x62C9;&#x53D6;&#x7684;&#x8FDC;&#x7AEF;&#x5730;&#x5740;&#xFF0C;&#x53EF;&#x4EE5;&#x5728;&#x547D;&#x4EE4;&#x540E;&#x9762;&#x6DFB;&#x52A0;&#x53C2;&#x6570;</p>
<p><code>git push origin master   //&#x8868;&#x793A;&#x63A8;&#x9001;&#x5230;&#x6240;&#x8BBE;&#x6E90;&#x5730;&#x5740;&#x7684;&#x4E3B;&#x7EBF;&#x5206;&#x652F;</code></p>
<p><img src="../image/2.png" alt="&#x56FE;&#x7247;"></p>
<p>&#x51FA;&#x73B0;&#x4E0A;&#x9762;&#x9700;&#x8981;&#x9A8C;&#x8BC1;&#x7528;&#x6237;&#x548C;&#x5BC6;&#x7801;&#x7684;&#x60C5;&#x51B5;&#x65F6;,&#x53EF;&#x8FDB;&#x884C;&#x4EE5;&#x4E0B;&#x64CD;&#x4F5C;&#xFF0C;&#x5982;&#x56FE;&#xFF1A;</p>
<p><img src="../image/3.png" alt="&#x56FE;&#x7247;"></p>
<p><img src="../image/4.png" alt="&#x56FE;&#x7247;"></p>
<p><a href="http://html5book.bluej.cn/#/md/6-workflow/git/git%E7%9A%84%E4%BD%BF%E7%94%A8" target="_blank">&#x5173;&#x4E8E;git&#x7684;&#x64CD;&#x4F5C;</a></p>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../Notes/notes.html" class="navigation navigation-prev " aria-label="Previous page: 知识库"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../Notes/emmet快捷法.html" class="navigation navigation-next " aria-label="Next page: emmet快捷法"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
